<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8" import="java.text.SimpleDateFormat"
	import="java.util.Date" import="java.util.List"
	import="xyz.xiangyushui.javaBean.renewalHistory.RenewalHistory"%>
<%@include file="/lib/common/basedir.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/lib/common/headerResource.html"%>
<!--sidebar-->
<link href="<%=basedir%>/lib/css/sidebar.css" rel="stylesheet">
<title>renewal records</title>

<style>
.content {
	margin-top: 3.8em;
}

.record {
	margin-bottom: 1.7em;
	font-size:1.2em;
}
</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<!--左侧导航-->
			<div class="col-sm-3 col-md-2 sidebar">
				<%@include file="../sidebar.jsp"%>
			</div>
			<!--右面板-->
			<div
				class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 rightPanel">
				<div class="col-md-10">
					<div class="row">
						<ul class="nav nav-tabs">
							<li role="presentation"><a
								href="<%=basedir%>/member/profile">关于我</a></li>
							<li role="presentation"><a
								href="<%=basedir%>/member/profile/consumptionHistory">消费记录</a></li>
							<li role="presentation" class="active"><a
								href="<%=basedir%>/member/profile/renewalHisory">充值记录</a></li>
						</ul>
					</div>
					<div class="content">
						<ul>
							<%
								@SuppressWarnings("unchecked")
								List<RenewalHistory> list = (List<RenewalHistory>) request.getAttribute("history");
								for (RenewalHistory rh : list) {
							%>
							<li class="record"><p>
									你在<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date(rh.getTime()))%>充值了<%=rh.getMoney() %>元。</p></li>
							<%
								}
							%>
						</ul>
					</div>

				</div>
			</div>
		</div>
	</div>

	<!-- jquery and bootstrap js -->
	<%@include file="/lib/common/footerResource.html"%>

</body>
</html>